package com.hh.test.other;

public class ExchangeStr {

	public static void main(String[] args) {
		Integer a = new Integer(1);
		Integer b = new Integer(2);
		exchange(a, b);
		System.out.println(a);
		System.out.println(b);
	}

	public static void exchange(Integer a, Integer b) {
		a = a ^ b;
		b = a ^ b;
		a = a ^ b;
		System.out.println(a);
		System.out.println(b);
	}
}
